<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition>

	<ui:param name="pDialogoMensagem"
		value="#{pManagedBean.mensagemDialogoPadraoSenhaObrigatoria}" />

	<ui:param name="pNomeWidgetVar" value="wvDialogoPadraoSenhaObrigatoria" />

	<!-- Popup para confirmação que necessite de VALIDACAO DE SENHA-->
	<p:confirmDialog id="dialogoPadraoSenhaObrigatoria" modal="false"
		showEffect="drop" hideEffect="explode"
		header="#{i18n['popup.dialogoPadraoSenhaObrigatoria.header']}"
		widgetVar="#{pNomeWidgetVar}" width="800">

		<f:facet name="message">
			<h:outputText id="dialogoMensagem" value="#{pDialogoMensagem}" />
		</f:facet>

		<p:panelGrid columns="4" styleClass="panelgrid-borderless">

			<h:outputLabel for="campo_confirmacaoSenha"
				value="#{i18n['popup.dialogoPadraoSenhaObrigatoria.confirmacaoSenha']}" />
			<p:password id="campo_confirmacaoSenha"
				title="#{i18n['popup.dialogoPadraoSenhaObrigatoria.confirmacaoSenha.hint']}"
				label="#{i18n['popup.dialogoPadraoSenhaObrigatoria.confirmacaoSenha']}"
				value="#{pManagedBean.senhaConfirmacao}" required="false" size="50"
				maxlength="100" disabled="false"
				validator="#{pManagedBean.validateTamanhoMaximoPalavraIsolada}"
				readonly="#{pManagedBean.isDetalhando}" feedback="false" />
			<p:watermark for="campo_confirmacaoSenha"
				value="#{i18n['popup.dialogoPadraoSenhaObrigatoria.confirmacaoSenha.wm']}" />
			<p:message for="campo_confirmacaoSenha" />

		</p:panelGrid>

		<h:panelGrid columns="3">
			<p:commandButton
				value="#{i18n['popup.dialogoPadraoSenhaObrigatoria.btnSim']}"
				update="msgs,dialogoPadraoSenhaObrigatoria#{pManagedBean.updateDialogoPadraoSenhaObrigatoria_BtnSim}"
				oncomplete="#{pNomeWidgetVar}.hide()" process="dialogoPadraoSenhaObrigatoria#{pManagedBean.updateDialogoPadraoSenhaObrigatoria_BtnSim}"
				actionListener="#{pManagedBean.doOperacaoBtnSim}" />

			<p:commandButton
				value="#{i18n['popup.dialogoPadraoSenhaObrigatoria.btnNao']}"
				onclick="#{pNomeWidgetVar}.hide()" type="button" immediate="true" />
		</h:panelGrid>

	</p:confirmDialog>
</ui:composition>

</html>